
pkgname=quota
pkgver=4.04
pkgrel=1
pkgdesc="Tools and patches for the Linux Diskquota system as part of the Linux kernel"
arch=('x86_64')
url="http://sourceforge.net/projects/linuxquota/"
license=('GPL-2')
depends=('e2fsprogs' 'libldap')
source=("https://downloads.sourceforge.net/sourceforge/linuxquota/${pkgname}-${pkgver}.tar.gz")
md5sums=('f46f3b0b5141f032f25684005dac49d3')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr \
    --sysconfdir=/etc 
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  
  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  # part of glibc, remove full dir
  rm -rf ${pkgdir}/usr/include
}
